<?php

class DataStore
{

  var $store = array();

  function DataStore ()
  {}
  
  function set ($name,$value)
  {
  	$this->store[$name] = $value;
  }

  function get ($name)
  {
  	return $this->store[$name];
  }

  function setRef ($name,&$value)
  {
  	$this->store[$name] = &$value;
  }

  function &getRef ($name)
  {
  	return $this->store[$name];
  }

}

?>